﻿using System;
using System.Collections;
using System.Collections.Generic;
using StrawberryShake;

namespace StrawberryShake.Client.StarWarsQuery
{
    [System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")]
    public partial class Queries
        : global::StrawberryShake.IDocument
    {
        private readonly byte[] _hashName = new byte[]
        {
            109,
            100,
            53,
            72,
            97,
            115,
            104
        };
        private readonly byte[] _hash = new byte[]
        {
            78,
            85,
            87,
            71,
            109,
            56,
            86,
            116,
            87,
            87,
            87,
            71,
            117,
            118,
            104,
            79,
            47,
            72,
            109,
            122,
            77,
            65,
            61,
            61
        };
        private readonly byte[] _content = new byte[]
        {
            113,
            117,
            101,
            114,
            121,
            32,
            103,
            101,
            116,
            72,
            117,
            109,
            97,
            110,
            40,
            36,
            105,
            100,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            41,
            32,
            123,
            32,
            104,
            117,
            109,
            97,
            110,
            40,
            105,
            100,
            58,
            32,
            36,
            105,
            100,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            117,
            109,
            97,
            110,
            32,
            125,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            72,
            117,
            109,
            97,
            110,
            32,
            111,
            110,
            32,
            72,
            117,
            109,
            97,
            110,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            70,
            114,
            105,
            101,
            110,
            100,
            115,
            32,
            104,
            101,
            105,
            103,
            104,
            116,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            111,
            110,
            32,
            67,
            104,
            97,
            114,
            97,
            99,
            116,
            101,
            114,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            110,
            97,
            109,
            101,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            72,
            97,
            115,
            70,
            114,
            105,
            101,
            110,
            100,
            115,
            32,
            111,
            110,
            32,
            67,
            104,
            97,
            114,
            97,
            99,
            116,
            101,
            114,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            102,
            114,
            105,
            101,
            110,
            100,
            115,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            70,
            114,
            105,
            101,
            110,
            100,
            32,
            125,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            70,
            114,
            105,
            101,
            110,
            100,
            32,
            111,
            110,
            32,
            67,
            104,
            97,
            114,
            97,
            99,
            116,
            101,
            114,
            67,
            111,
            110,
            110,
            101,
            99,
            116,
            105,
            111,
            110,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            110,
            111,
            100,
            101,
            115,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            125,
            32,
            125
        };

        public ReadOnlySpan<byte> HashName => _hashName;

        public ReadOnlySpan<byte> Hash => _hash;

        public ReadOnlySpan<byte> Content => _content;

        public static Queries Default { get; } = new Queries();

        public override string ToString() => 
            @"query getHuman($id: String!) {
              human(id: $id) {
                ... Human
              }
            }
            
            fragment Human on Human {
              ... HasName
              ... HasFriends
              height
            }
            
            fragment HasName on Character {
              name
            }
            
            fragment HasFriends on Character {
              friends {
                ... Friend
              }
            }
            
            fragment Friend on CharacterConnection {
              nodes {
                ... HasName
              }
            }";
    }
}
